package com.qingcloud.fexecutor.base.handler;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.util.ArrayList;
import java.util.List;


@Getter
@Setter
@ApiModel("API调试请求参数对象")
public class ApiExecuteParam {

    @ApiModelProperty(value = "页面ID")
    private Integer pageId;

    @ApiModelProperty(value = "访问类型 1-开发预览 2-发布使用")
    private Integer viewType = 1;

    @ApiModelProperty("资源编码")
    private String resourceCode;

    @ApiModelProperty(value = "页面所有参数json")
    private String json;

    @ApiModelProperty(value = "Head 参数")
    private List<ApiParamDTO> headParam = new ArrayList<>();

    @ApiModelProperty(value = "Body Json字符串", example = "")
    private String apiBodyJson;

    @ApiModelProperty(value = "Query 参数")
    private List<ApiParamDTO> queryParam = new ArrayList<>();

    @ApiModelProperty(value = "表单参数")
    private List<ApiParamDTO> formParam = new ArrayList<>();

    @ApiModelProperty(value = "PATH参数")
    private List<ApiParamDTO> pathParam = new ArrayList<>();

}
